package cn.hongsw.taskschedule.service;

import cn.hongsw.taskschedule.model.DataSourceInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author :hongsw
 * @date :2021-05-19 14:21
 */
public interface DataSourceInfoService extends IService<DataSourceInfo> {
    /**
     * 新增数据源
     *
     * @param dataSourceInfo 数据源信息
     * @return boolean
     * @author hongsw
     * @date 2021/5/19 14:22
     **/
    boolean addDataSource(DataSourceInfo dataSourceInfo);

    /**
     * 删除数据源
     *
     * @param id 数据源id
     * @return boolean
     * @author hongsw
     * @date 2021/5/19 17:18
     **/
    boolean deleteDataSource(Long id);
}
